<script lang="ts" setup>

const props = defineProps({
  cssType: {
    type: Number,
    default: 0
  }
})
</script>

<template>
  <div class="total-container"  :class="cssType === 1 ? 'right-bg':'left-bg'">
    <span class="total-icon-view">
      <slot name="icon"></slot>
    </span>
    <span class="total-value-view">
      <slot></slot>
    </span>
  </div>

</template>

<style scoped lang="less">
.left-bg {
  background: url("../../../../assets/bi/statistics-bg.png")
}


.right-bg {
  background: url("../../../../assets/bi/emission-bg.png")
}


.total-container {
  background-size: 100% 100%;
  width: 100%;
  height: 30px;
  font-size: 14px;
  display: flex;
  align-items: center;


  .total-icon-view {
    margin: 4px 8px 0 5px;
  }


  .total-value-view {
    white-space: nowrap;
  }
}
</style>